@extends('admin.master')
<script src="/js/admin/installInfos.js"></script>
@section('title', '安装信息')
	
@section('firstItem')
@parent
				<span>安装信息</span>
				<input class="a_indexbg" type="hidden" value="installinfos" />
@stop
@section('searchList')
@parent
				<a class="queryBoxBtn">搜索</a>
				<div>
					<input class="installQueryBox" type="text" placeholder="输入设备编码、用户名或经销商" value="{{ $condition }}" />
				</div>
@stop
@section('dataTables')
@parent
			<table class="installInfo dataTables" cellspacing="0" cellpadding="0">
				<thead>
					<tr>
						<td>序号</td>
						<td>设备编号</td>
						<td>用户名</td>
						<td>用户电话</td>
						<td>安装地址</td>
						<td>安装人</td>
						<td>安装人电话</td>
						<td>经销商</td>
						<td>备注信息</td>
						<td>安装日期</td>
						<td>安装状态</td>
						<td>编辑信息</td>
					</tr>
				</thead>
				<tbody>
					@for($i=0, $installInfoCount=count($install_infos); $i<$installInfoCount; $i++)
					<tr >
						<td>{{ $i+1 }}</td>
						<td class="DeviceCodeCell devicecodeVal">{{ $install_infos[$i]->device_code }}</td>
						<td class="UserNameCell">{{ $install_infos[$i]->customer_name }}</td>
						<td class="UserPhoneCell">{{ $install_infos[$i]->phone }}</td>
						<td class="AddressCell">{{ $install_infos[$i]->installation_address }}</td>
						<td class="MenCell">{{ $install_infos[$i]->operator }}</td>
						<td class="MenTelCell">{{ $install_infos[$i]->operator_phone }}</td>
						<td class="DealerCell">{{ $install_infos[$i]->dealer }}</td>
						<td class="other_editTextCell add_text" style="width:200px;">{{ $install_infos[$i]->remark or '' }}</td>
						<td class="YMD" style="width:160px;"><span class="yearBox">{{ $install_infos[$i]->install_at->year }}</span>&nbsp;-<span class="monthBox">{{ $install_infos[$i]->install_at->month }}</span>&nbsp;-<span class="dayBox">{{ $install_infos[$i]->install_at->day }}</span></td>
						<td class="statusCell">{{ $install_infos[$i]->status }}</td>
						<td>
							<p class="cellBtn">
								<input type="hidden" value="{{ $install_infos[$i]->id }}" />
								<span class="writeBtn writeIBtn">编辑</span>
								<span class="deleteBtn deleteIBtn">删除</span>
								<input type="hidden" value="{{ $install_infos[$i]->id }}" />
							</p>
						</td>
					</tr>
					@endfor
				</tbody>
			</table>
@stop
<!-- 分页布局 -->
<!-- 添加账号 -->
@section('add_div')
	@parent
	<div class="addInfosBtn addInstallInfosBtn">添加</div>			
@stop
@section('page_num')
<ul class="pagination pagination-lg">
	{!! $install_infos ->render() !!}
</ul>			
@stop
@section('infor_promit')
@parent
	<!-- 添加安装信息弹框 -->
	<div class="editHintBoxBg addInstallInfosBg">
		<div class="editHintBox addInstallInfos">
			<p class="titleTxt">添加安装信息</p>
			<div class="editBox">
				<p>
					<span>用户名</span><input class="addInstallUserName" type="text" placeholder="输入用户姓名" /><label class="required_left">*</label>
					<span class="spanR">用户电话</span><input class="addInstallUserPhone" type="text" placeholder="输入用户手机号码"/><label class="required_right">*</label>
				</p>
				<p style="margin-top: 15px;">
					<span>安装地址</span><input class="addInstallAddress" type="text" placeholder="输入安装地址" /><label class="required_left">*</label>
					<span class="spanR">设备编号</span><input class="addIDeviceCode" type="text" placeholder="输入设备编号"/><label class="required_right">*</label>
				</p>
				<p class="p_relative">
					<span>安装状态</span><label class="required_left">*</label>
					<span class="editIStatus addInstallStatus"></span>
					<span class="statusDropBox addsDropBox">
						<a>已安装</a>
						<a>未安装</a>
					</span>
					<span class="spanR" style="position: absolute;top: 0;left: 315px;">经销商</span><input style="position: absolute;top: 0;left: 415px;" class="addInstallDealer" type="text" placeholder="输入经销商"/><label class="required_right">*</label>
				</p>
				<p style="margin-top: 15px;">
					<span>安装人</span><input class="addInstallMen" type="text" placeholder="输入维护人姓名" /><label class="required_left">*</label>
					<span class="spanR">安装人电话</span><input class="addInstallMenTel" type="text" placeholder="输入维护人手机号码"/><label class="required_right">*</label>
				</p>
				<p style="margin: 15px 0;">
					<span>安装日期</span>
					<input class="dateBox addYInput" placeholder="年"/>年
					<input class="dateBox addMInput" placeholder="月"/>月
					<input class="dateBox addDInput" placeholder="日"/>日
					<label class="required">*</label>
				</p>
				<textarea class="textareaBox other_addText" placeholder="备注信息："></textarea>

				<label class="labelBox" id="addIlabelBox"></label>
			</div>
			<div class="btnBox" >
				<a class="addICancelBox">取消</a>
				<a class="addIOkBtn">确定</a>
			</div>
		</div>
	</div>
	<!-- 编辑维护信息弹框 -->
	<div class="editHintBoxBg editInstallInfosBg">
		<div class="editHintBox editInstallInfos">
			<p class="titleTxt">编辑安装信息</p>
			<div class="editBox">
				<p>
					<span>用户名</span><input class="editIUserName" type="text"  /><label class="required_left">*</label>
					<span class="spanR">用户电话</span><input class="editIUserPhone" type="text" /><label class="required_right">*</label>
				</p>
				<p style="margin-top: 15px;">
					<span>安装地址</span><input class="editIAddress" type="text"/><label class="required_left">*</label>
					<span class="spanR">设备编号</span><input class="editIDeviceCode" type="text" /><label class="required_right">*</label>
				</p>
				<p class="p_relative">
					<span>安装状态</span><label class="required_left">*</label>
					<span class="editIStatus sBox"></span>
					<span class="statusDropBox sDropBox">
						<a>已安装</a>
						<a>未安装</a>
					</span>
					<span class="spanR" style="position: absolute;top: 0;left: 315px;">经销商</span><input style="position: absolute;top: 0;left: 415px;" class="editIDealer" type="text" /><label class="required_right">*</label>					
				</p>
				<p style="margin-top: 15px;">
					<span>安装人</span><input class="editIMen" type="text"  /><label class="required_left">*</label>
					<span class="spanR">安装人电话</span><input class="editIMenTel" type="text" /><label class="required_right">*</label>
				</p>
				<p style="margin: 15px 0;">
					<span>安装日期</span>
					<input class="dateBox editIYInput" placeholder="年"/>年
					<input class="dateBox editIMInput" placeholder="月"/>月
					<input class="dateBox editIDInput" placeholder="日"/>日
					<label class="required">*</label>
				</p>
				<textarea class="textareaBox other_editText" placeholder="备注信息："></textarea>
				<label class="labelBox" id="editIlabelBox"></label>
			</div>
			<div class="btnBox" >
				<a class="editICancelBox">取消</a>
				<a class="editIOkBtn">确定</a>
			</div>
		</div>
	</div>
	<!-- 删除维护信息弹框 -->
	<div class="deleteBoxBg deleteIInfosBg">
		<div class="deleteBox deleteIInfos">
			<p class="titleTxt">删除</p>
			<div class="titleText">是否删除此条安装信息？</div>
			<label class="labelBox" id="deleteIlabelBox"></label>
			<div class="btnBox">
				<a class="cancelBtn deleteICancelBtn">取消</a>
				<a class="okBtn deleteIOkBtn">确定</a>
			</div>

		</div>
	</div>
@stop
